﻿@{
    Layout = null;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>克隆按钮</title>
    <link href="~/css/framework-font.css" rel="stylesheet" />
    <link href="~/css/framework-theme.css" rel="stylesheet" />
    <script src="~/lib/jquery/1.12.4/jquery.min.js"></script>
    <script src="~/lib/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <link href="~/lib/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/lib/wdtree/tree.js"></script>
    <link href="~/lib/wdtree/tree.css" rel="stylesheet" />
    <link href="~/lib/select2/select2.min.css" rel="stylesheet" />
    <script src="~/lib/select2/select2.min.js"></script>
    <script src="~/lib/laydate/laydate.js"></script>
    <script src="~/lib/moment/moment.js"></script>
    <link href="~/lib/wizard/wizard.css" rel="stylesheet" />
    <script src="~/lib/wizard/wizard.js"></script>
    <script src="~/lib/validate/jquery.validate.min.js"></script>
    <script src="~/lib/datepicker/WdatePicker.js"></script>
    <script src="~/lib/jqgrid/5.3.0/i18n/grid.locale-cn.js"></script>
    <link href="~/css/framework-ui.css" rel="stylesheet" />
    <script src="~/js/framework-ui.js"></script>
</head>
<body>

    <script>
        var menuId = $.request("menuId");
        $(function () {
            $("#itemTree").treeview({
                showcheck: true,
                url: "/SystemManage/MenuButton/GetCloneButtonTreeJson"
            });
        });
        function submitForm() {
            var ids = $("#itemTree").getCheckedNodes();
            $.submitForm({
                url: "/SystemManage/MenuButton/SubmitCloneButton",
                param: { menuId: menuId, ids: String(ids) },
                success: function () {
                    top.modulebutton.$("#gridList").resetSelection();
                    top.modulebutton.$("#gridList").trigger("reloadGrid");
                }
            })
        }
    </script>

    <div style="margin: 10px;">
        <div id="itemTree"></div>
    </div>
</body>
</html>
